package com.shang.bean;

/**
 * @ClassName Phone
 * @Description TODO
 * @Author Larry
 * @Date 2021/5/20 9:52
 * @Version 1.0
 */
public class Phone {
    private String name;

    public Phone() {
        System.out.println("无参构造。。。。。。。。。。。。。。。。。。");
    }

    public void setName(String name) {
        this.name = name;
        System.out.println("调用set方法设置属性值。。。。。。。。。。。。。");
    }

    public void initMethod(){
        System.out.println("初始化方法...........................");
    }

    public void destroyMethod(){
        System.out.println("执行销毁的方法.................");
    }

    public void testphone(){
        System.out.println(name);
    }
}
